package com.heart.house.user.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Luo Zhen
 * @create 2019-11-04 15:07
 */
@Data
public class ListResponse<T> implements Serializable {

    private static final long serialVersionUID = 1699861092363663007L;

    public static <T> ListResponse<T> build(List<T> list, Long count) {
        ListResponse response = new ListResponse();
        response.setList(list);
        response.setCount(count);
        return response;
    }

    public ListResponse() {

    }

    private List<T> list;
    private Long count;

}
